using System;
using System.Collections.Generic;
using System.Text;
using System.Xml.Serialization;
using System.Xml;

namespace Stone.Components
{
    public interface IXmlSerializable2 : IXmlSerializable
    {
        bool ReadXml(XmlReader reader, string elementName);

        void WriteXml(XmlWriter writer, string elementName);

        string ToXml();

        string ToXml(string elementName);

        string ToXml(bool hasDeclareHead, bool formated);

        string ToXml(bool hasDeclareHead, bool formated, string elementName);

        bool FromXml(string xmlString);

        bool FromXml(string xmlString, string elementName);
    }
}
